package com.candy.candymessage.business.entity;

import com.alibaba.fastjson2.JSONObject;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.handlers.FastjsonTypeHandler;
import lombok.Data;

import java.time.LocalDateTime;

/**
 * @author suYanLong
 * @version 1.0
 * @date 2023/4/13 17:18
 * @Description 描述
 */
@Data
@TableName("msg_info")
public class MsgNoticeDto {

    @TableId(type = IdType.AUTO)
    private Long id;

    private String source;

    private Integer type;

    private String receiver;

    @TableField(typeHandler = FastjsonTypeHandler.class)
    private JSONObject msgBody;

    private Integer callback;

    private String callbackUrl;

    @TableField(typeHandler = FastjsonTypeHandler.class)
    private JSONObject callbackBody;

    private LocalDateTime createTime;

    private LocalDateTime updateTime;

}
